package org.jeecg.modules.xl.order.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * @Description: 发货表
 * @Author: jeecg-boot
 * @Date:   2024-10-27
 * @Version: V1.0
 */
@ApiModel(value="xl_customer_shipment对象", description="发货表")
@Data
@TableName("xl_customer_shipment")
public class XlCustomerShipment implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**发货单号*/
	@Excel(name = "发货单号", width = 15)
    @ApiModelProperty(value = "发货单号")
    private String shipmentCode;
	/**门店编码*/
	@Excel(name = "门店编码", width = 15)
    @ApiModelProperty(value = "门店编码")
    private String storeCode;

    /**门店名称*/
    @Excel(name = "门店名称", width = 15)
    @ApiModelProperty(value = "门店名称")
    private String storeName;

	/**订单单号*/
	@Excel(name = "订单单号", width = 15)
    @ApiModelProperty(value = "订单单号")
    private String orderCode;
	/**发货方式(1:城配，2:快递)*/
	@Excel(name = "发货方式(1:城配，2:快递)", width = 15, dicCode = "delivery_way")
    @Dict(dicCode = "delivery_way")
    @ApiModelProperty(value = "发货方式(1:城配，2:快递)")
    private String deliveryWay;
	/**快递类型(1:三通一达，2:顺丰，3:京东，4:极兔，5:邮政，6:德邦)*/
	@Excel(name = "快递类型(1:三通一达，2:顺丰，3:京东，4:极兔，5:邮政，6:德邦)", width = 15, dicCode = "delivery_type")
    @Dict(dicCode = "delivery_type")
    @ApiModelProperty(value = "快递类型(1:三通一达，2:顺丰，3:京东，4:极兔，5:邮政，6:德邦)")
    private String deliveryType;
	/**快递单号*/
	@Excel(name = "快递单号", width = 15)
    @ApiModelProperty(value = "快递单号")
    private String deliveryCode;
	/**状态(1:已发货，2:收货中,3:已收货)*/
	@Excel(name = "状态", width = 15,dicCode = "customer_shipment_state")
    @ApiModelProperty(value = "状态(1:已发货，2:收货中,3:已收货)")
    @Dict(dicCode = "customer_shipment_state")
    private String state;
	/**收货时间*/
	@Excel(name = "收货时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "收货时间")
    private Date takeDeliveryTime;
	/**收货确认人*/
	@Excel(name = "收货确认人", width = 15)
    @ApiModelProperty(value = "收货确认人")
    private String takeDeliveryBy;
	/**收货凭证图片*/
	@Excel(name = "收货凭证图片", width = 15)
    @ApiModelProperty(value = "收货凭证图片")
    private String takeDeliveryImage;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**订单创建人*/
    @Excel(name = "订单创建人", width = 15)
    @ApiModelProperty(value = "订单创建人")
    private String orderCreateBy;


    /**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**租户号*/
	@Excel(name = "租户号", width = 15)
    @ApiModelProperty(value = "租户号")
    private String tenantId;
}
